package com.push.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.push.web.domain.BizDailyGrowth;
import com.push.web.domain.BizMultimodalFile;
import com.push.web.mapper.BizDailyGrowthMapper;
import com.push.web.service.IBizDailyGrowthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@Repository
public class BizDailyGrowthSeriviceImpl extends ServiceImpl<BizDailyGrowthMapper, BizDailyGrowth> implements IBizDailyGrowthService {
    @Autowired
    private BizDailyGrowthMapper BizDailyGrowthMapper;

    public int deleteBizDailyGrowth(){
        return BizDailyGrowthMapper.deleteBizDailyGrowth();
    }

    public int insertBizDailyGrowth() {
        return BizDailyGrowthMapper.insertBizDailyGrowth();
    }

    @Override
    public List<BizDailyGrowth> getList()
    {
        deleteBizDailyGrowth();
        insertBizDailyGrowth();
        return BizDailyGrowthMapper.getList();
    }

    @Override
    public List<BizDailyGrowth> findByDateRange(String startDate, String endDate)
    {
        return BizDailyGrowthMapper.findByDateRange(startDate, endDate);
    }

}
